﻿using System.Collections;
using System.Text.RegularExpressions;
using System.Collections.Generic;

namespace WhySoSeries
{
    public class Season
    {
        public Series Series { get; set; }
        public int SeasonNumber { get; set; }
        public int NumberOfEpisodes { get; set; }
        protected List<Episode> episodesList;

        public Season(Series series, int seasonNumber)
        {
            SeasonNumber = seasonNumber;
            Series = series;
            episodesList = new List<Episode>();
        }

        public Season(Series series, int seasonNumber, int numberOfEpisodes)
        {
            SeasonNumber = seasonNumber;
            NumberOfEpisodes = numberOfEpisodes;
            Series = series;
            episodesList = new List<Episode>();
        }

        public void AddEpisode(Episode episode)
        {
            this.episodesList.Add(episode);
        }

        public IEnumerable<Episode> GetEpisodes()
        {
            return this.episodesList;
        }
    }
}
